package cate.common.table.activity.zonelimit.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.zonelimit.row.ZoneLimitBoxRow;
import easy.java.dev.note.NoteClass;

@NoteClass("全服限购商品")
public class ZoneLimitBoxSheet extends ESheet<ZoneLimitBoxRow> {

    @Override
    public String getSheetName() {
        return "宝箱奖励";
    }

    public ZoneLimitBoxRow findRow(int rwdTid, int group) {
        for (ZoneLimitBoxRow row : this.getList()) {
            if (row.rwdTid == rwdTid && row.rwdGroup == group) {
                return row;
            }
        }
        return null;
    }

}
